package com.gaofeng.day01;

public class demo02 {
    public static void main(String[] args) {
        int a = 10;
        double b = 20.0;
        int[] arr = {1,2,3,4};
        int[] arr2 = arr;
        arr[0] = 52;
        System.out.println(arr2[0]);

        int count = 100;
        System.out.println(count);
        count = changeCount(count);
        System.out.println(count);

        int[] arr3 = {10,20,30};
        System.out.println(arr3[1]);
        changeArr(arr3);
        System.out.println(arr3[1]);

    }
    public static int changeCount(int count){
        count = 2000;
        return count;
    }

    public static void changeArr(int[] arr){
        arr[1] = 5000;
    }

}
